Battery water pump control method, battery controller and battery

ABSTRACT

A battery water pump control method, a battery controller and a battery. The battery comprises a battery controller and a battery water pump. The method comprises steps that when the battery water pump is in an open-loop control state, the battery controller obtains an open-loop expected control value of the battery water pump according to a first expected water flow of the battery water pump. The battery controller obtains a first control coefficient corresponding to the battery water pump according to the first expected water flow and the mapping relation between the expected water flow and the control coefficient, the battery controller determines an open-loop actual control value of the battery water pump according to the open-loop expected control value of the battery water pump and the first control coefficient, the battery controller controls the water flow of the battery water pump by utilizing the open-loop actual control value. When the battery controller controls the water flow of the battery water pump in the open-loop control mode, control precision can be improved.

TECHNICAL FIELD

Embodiments of the present invention relate to the technical field ofbatteries, particularly to a battery water pump control method, abattery controller and a battery.

BACKGROUND ART

In a battery comprising a water pump, such as a solid oxide fuel cell,it is necessary to provide the reforming reaction of methane and watervapor. In the reforming reaction, water vapor needs to be supplied in acertain proportion according to the amount of methane, so the water flowof the battery water pump needs to be accurately controlled to ensurethe normal progress of the reforming reaction. The battery controllerneeds to accurately control the water flow of the water pump in thebattery (“battery water pump” for short) to meet the needs of thereforming reaction. The control modes of the battery water pump includea closed-loop control mode and an open-loop control mode. In theclosed-loop control mode, the battery controller calculates a controldifference according to the deviation between an actual water flowmeasured by a water flow sensor of the battery water pump and anexpected water flow. The control difference is used for finely tuningthe actual control value of the battery water pump to improve theaccuracy of water flow controlled by the battery water pump. Inopen-loop control, the battery controller directly obtains an open-loopcontrol value by looking up in a table according to the expected waterflow.

Known systems use closed-loop control. When the water flow sensor of thebattery water pump is faulty or another type of fault occurs, thebattery water pump will be downgraded from closed-loop control toopen-loop control. However, when the open-loop control mode is used tocontrol the water flow of the battery water pump, there is a problem oflow control accuracy.

SUMMARY OF THE INVENTION

Embodiments of the present invention provide a battery water pumpcontrol method, a battery controller, and a battery intended to overcomethe problem of low control accuracy when an open-loop control mode isused to control the water flow of the battery water pump.

A first aspect of the present invention provides a battery water pumpcontrol method, wherein a battery comprises a battery controller and abattery water pump and the method comprises steps that:

-   -   when the battery water pump is in an open-loop control state,        the battery controller obtains an open-loop expected control        value of the battery water pump according to a first expected        water flow of the battery water pump;    -   the battery controller obtains a first control coefficient        corresponding to the battery water pump according to the first        expected water flow and the mapping relation between the        expected water flow and the control coefficient, which is a        coefficient obtained according to a closed-loop actual control        value of the battery water pump and a closed-loop expected        control value of the battery water pump when the battery water        pump is in a closed-loop control state;    -   the battery controller determines an open-loop actual control        value of the battery water pump according to the open-loop        expected control value of the battery water pump and the first        control coefficient; and    -   the battery controller controls the water flow of the battery        water pump by utilizing the open-loop actual control value.

Optionally, before the battery controller obtains a first controlcoefficient corresponding to the battery water pump, the method furthercomprises steps that:

-   -   the battery controller obtains a closed-loop actual control        value and a closed-loop expected control value of the battery        water pump under at least one expected water flow when the        battery water pump is in a closed-loop control state;    -   the battery controller obtains a control coefficient of the        battery water pump under at least one expected water flow        according to the closed-loop actual control value and the        closed-loop expected control value of the battery water pump        under at least one expected water flow; and    -   the battery controller establishes the mapping relation        according to the control coefficient of the battery water pump        under at least one expected water flow and the at least one        expected water flow.

Optionally, the battery water pump is in a closed-loop control state,and the battery controller obtains a closed-loop actual control valueand a closed-loop expected control value of the battery water pump underat least one expected water flow when the battery water pump is in aclosed-loop control state, and the method comprises:

-   -   A. In an i-th time cycle, the battery controller obtains a        closed-loop expected control value of the battery water pump in        the i-th time cycle according to an expected water flow of the        battery water pump in the i-th time cycle and the mapping        relation between the expected water flow and the closed-loop        expected control value, where the i is greater than or equal to        0;    -   B. The battery controller obtains a water flow difference in the        i-th time cycle according to the expected water flow of the        battery water pump in the i-th time cycle and an actual water        flow detected by a water flow sensor of the battery water pump        in the i-th time cycle;    -   C. The battery controller obtains a control difference of the        battery water pump in the i-th time cycle according to the water        flow difference in the i-th time cycle;    -   D. The battery controller obtains a closed-loop actual control        value of the expected water flow of the battery water pump in        the i-th time cycle according to the control difference of the        battery water pump in the i-th time cycle and the closed-loop        expected control value of the battery water pump in the i-th        time cycle; and    -   E. Add 1 to i and return to step A.

Optionally, before the battery controller obtains an open-loop expectedcontrol value of the battery water pump according to a first expectedwater flow of the battery water pump, the method can further comprisessteps that:

-   -   the battery controller determines that the battery water pump        has a closed-loop control fault; and    -   the battery controller switches the battery water pump from a        closed-loop control state to an open-loop control state.

Optionally, the control coefficient is the ratio between the closed-loopactual control value of the battery water pump and the closed-loopexpected control value of the battery water pump when the battery waterpump is in a closed-loop control state, and the battery controllerdetermines an open-loop actual control value of the battery water pumpaccording to the open-loop expected control value of the battery waterpump and the first control coefficient. The battery controllermultiplies the open-loop expected control value of the battery waterpump with the first control coefficient to obtain an open-loop actualcontrol value of the battery water pump.

A second aspect of the present invention provides a battery controller,the battery comprises: the battery controller and a battery water pump,and the battery controller comprises: a processing module, used forobtaining an open-loop expected control value of the battery water pumpaccording to a first expected water flow of the battery water pump whenthe battery water pump is in an open-loop control state; obtaining afirst control coefficient corresponding to the battery water pumpaccording to the first expected water flow and the mapping relationbetween the expected water flow and the control coefficient; anddetermining an open-loop actual control value of the battery water pumpaccording to the open-loop expected control value of the battery waterpump and the first control coefficient, which is a coefficient obtainedaccording to a closed-loop actual control value of the battery waterpump and a closed-loop expected control value of the battery water pumpwhen the battery water pump is in a closed-loop control state; and acontrol module, used for controlling the water flow of the battery waterpump by utilizing the open-loop actual control value.

Optionally, the battery controller further comprises: an obtainingmodule, used for obtaining a closed-loop actual control value and aclosed-loop expected control value of the battery water pump under atleast one expected water flow when the battery water pump is in aclosed-loop control state before the processing module obtains a firstcontrol coefficient corresponding to the battery water pump; and theprocessing module, further used for obtaining a control coefficient ofthe battery water pump under at least one expected water flow accordingto a closed-loop actual control value and a closed-loop expected controlvalue of the battery water pump under the at least one expected waterflow; and establishing the mapping relation according to the controlcoefficient of the battery water pump under at least one expected waterflow and the at least one expected water flow.

Optionally, the battery water pump is in a closed-loop control state andthe obtaining module is specifically used for:

-   -   A. in an i-th time cycle, obtaining a closed-loop expected        control value of the battery water pump in the i-th time cycle        according to an expected water flow of the battery water pump in        the i-th time cycle and the mapping relation between the        expected water flow and the closed-loop expected control value,        where the i is greater than or equal to 0;    -   B. obtaining a water flow difference in the i-th time cycle        according to the expected water flow of the battery water pump        in the i-th time cycle and an actual water flow detected by a        water flow sensor of the battery water pump in the i-th time        cycle;    -   C. obtaining a control difference of the battery water pump in        the i-th time cycle according to the water flow difference in        the i-th time cycle;    -   D. obtaining a closed-loop actual control value of the expected        water flow of the battery water pump in the i-th time cycle        according to the control difference of the battery water pump in        the i-th time cycle and the closed-loop expected control value        of the battery water pump in the i-th time cycle; and;    -   E. adding 1 to i and returning to step A.

Optionally, the battery controller further comprises: a determiningmodule, used for determining that the battery water pump has aclosed-loop control fault before the battery controller obtains anopen-loop expected control value of the battery water pump according toa first expected water flow of the battery water pump; and theprocessing module, further used in the battery controller to switch thebattery water pump from a closed-loop control state to an open-loopcontrol state.

Optionally, the control coefficient is the ratio between the closed-loopactual control value of the battery water pump and the closed-loopexpected control value of the battery water pump when the battery waterpump is in a closed-loop control state, and the processing module isspecifically used for multiplying an open-loop expected control value ofthe battery water pump with the first control coefficient to obtain anopen-loop actual control value of the battery water pump.

A third aspect of the present invention provides a battery controller,comprising: at least one processor and a memory. The memory storescomputer execution instructions; and the at least one processor executesthe computer execution instructions stored in the memory, so that thebattery controller implements the method described in any paragraph ofthe first aspect.

A fourth aspect of the present invention provides a computer readablestorage medium, the computer readable storage medium stores computerexecution instructions and when the computer execution instructions areexecuted by the processor, the method of the first aspect isimplemented.

A fifth aspect of the present invention provides a battery, comprisingthe battery controller of the second aspect or the third aspect.

The embodiments of the invention provide a battery water pump controlmethod, a battery controller and a battery. When the battery water pumpadopts a closed-loop control mode, the battery water pump obtains acontrol coefficient according to a closed-loop actual control value ofthe battery water pump and a closed-loop expected control value of thebattery water pump under any expected water flow, thereby establishing amapping relation between the expected water flow and the controlcoefficient. Under the expected water flow, the control coefficient isused for finely tuning the control coefficient of the battery water pumpand can improve the control accuracy of the water flow of the batterywater pump. When the control of the battery water pump is degraded to anopen-loop control mode, an open-loop actual control value is obtainedaccording to an open-loop expected control value corresponding to theexpected water flow and a control coefficient corresponding to theexpected water flow. Now, if the open-loop actual control value is actedupon the battery water pump, the control accuracy of the battery waterpump in an open-loop control mode can be improved.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings used in the description of the embodiments will be brieflydescribed below. The drawings in the description below are just someembodiments of the present invention.

FIG. 1 is a schematic view of a water supply path of a solid oxide fuelcell.

FIG. 2 is a schematic view of a flow of a battery water pump controlmethod.

FIG. 3 is a schematic view of a flow of an alternative battery waterpump control method.

FIG. 4 is a structural schematic view of a battery controller.

FIG. 5 is a structural schematic view of an alternative batterycontroller.

DETAILED DESCRIPTION

Embodiments of the present invention will be described below inconjunction with the drawings. The described embodiments are only some,not all of the embodiments of the present invention.

A battery comprising a water pump may adopt a technical solutionprovided by the embodiments of the present invention. For theconvenience of introduction, the following scenarios and embodiments aredescribed by taking a solid oxide fuel cell as an example.

FIG. 1 is a schematic view of a water supply path of a solid oxide fuelcell. As shown in FIG. 1, the water supply path comprises a water tank11, a battery water pump 12, a pressure regulating valve 13, a filter14, a liquid water gasification mixer 15, a reformer 16, a cooler 17, abattery anode 18, etc. and the connective relations are shown in FIG. 1.The working process of the solid oxide fuel cell is as follows:

The battery water pump 12 extracts a quantity of liquid water from thewater tank 11. The water supply pressure is regulated by the pressureregulating valve 13 and the impurities and ions in the water arefiltered out by the filter 14. The filtered liquid water is heated inthe liquid water gasification mixer 15 by high-temperature gas in anisolated manner to become water vapor and be mixed with fuel methane,and then sent to the reformer 16 for reforming reaction to generatehydrogen. The hydrogen is sent to the battery anode 18 to realize thebattery function and the remaining water vapor is cooled by the cooler17 and then sent to the water tank 11 for reuse. When methane and watervapor undergo a reforming reaction in the reformer 16, water vapor needsto be supplied in a certain proportion according to the amount ofmethane, so the water flow of the battery water pump needs to beaccurately controlled to ensure the normal progress of the reformingreaction.

In known systems, the control modes of the battery water pump mainlyinclude an open-loop control mode and a closed-loop control mode. In aclosed-loop control mode, for example, a feedforward+proportionalintegral differential (PID) closed-loop control strategy is adopted. Thefeedforward control is to directly calculate a closed-loop expectedcontrol value according to an expected water flow (for example, bylooking up in a table) and the PID closed-loop control is to calculate acontrol difference based on the deviation between an expected water flowand an actual water flow measured by a water flow sensor (e.g., a massflow sensor) arranged at the water outlet of the battery water pump. Abattery controller superimposes the closed-loop expected control valueand the control difference to form a closed-loop actual control value.In an open-loop control mode, an open-loop control value is directlyobtained by looking up in a table according to an expected water flow(for example, by querying the one-dimensional look-up table CUR, whichis a well-known mapping table and is not described again here).

Due to the deviation of the equipment itself, there will be a certaindeviation between the expected control value and the actual controlvalue of the battery water pump. The closed-loop control mode finelytunes the actual control value by introducing a feedback mechanism toensure its control accuracy. Correspondingly, the open-loop control modewill have a problem of low control accuracy. In practical applications,a closed-loop control mode is normally used to control the water flow ofthe battery water pump. When a closed-loop control fault is caused by afault of the water flow sensor or other reasons, in order to ensure thatthe battery water pump will not completely lose control, the control ofthe battery water pump is degraded to an open-loop control mode. Now,there is a problem of low control accuracy in an open-loop control mode.

An embodiment of the invention provides a battery water pump controlmethod. When the battery water pump adopts a closed-loop control mode,the battery water pump obtains a control coefficient according to aclosed-loop actual control value of the battery water pump and aclosed-loop expected control value of the battery water pump under anyexpected water flow and establishes a mapping relation between theexpected water flow of the battery water pump and the controlcoefficient. The control coefficient is used to adjust the open-loopactual control value of the battery water pump and can shorten thedifference between the actual water flow of the battery water pump andthe expected water flow, thereby improving the water flow controlaccuracy of the battery water pump. When the control of the batterywater pump is degraded to an open-loop control mode, an open-loop actualcontrol value is obtained according to the open-loop expected controlvalue corresponding to the expected water flow and the controlcoefficient corresponding to the expected water flow. Now, if theopen-loop actual control value is acted upon the battery water pump, thecontrol accuracy of the battery water pump in an open-loop control modecan be improved.

The battery water pump control method, battery controller and batteryprovided by the present invention will now be described in detail belowby referring to specific embodiments. The following specific embodimentscan be combined with each other and the same or similar concepts orprocesses may not be described repeatedly in some embodiments.

FIG. 2 is a schematic view of a flow of a battery water pump controlmethod provided by an embodiment of the present invention. The methodprovided by the embodiment of the present invention is applicable to abattery comprising a battery controller and a battery water pump. Asshown in FIG. 2, the method comprises the following steps:

S11, when the battery water pump is in an open-loop control state, thebattery controller obtains an open-loop expected control value of thebattery water pump according to a first expected water flow of thebattery water pump.

When the battery water pump is in an open-loop control state, thebattery controller can obtain an open-loop expected control valueaccording to a first expected water flow of the battery water pump and aprestored CUR. The CUR for example can be as shown in the followingTable 1:

TABLE 1 Expected water flow Control value A1 C1 A2 C2 . . . . . .

The expected water flow shown in Table 1 can be mass flow. When thecontrol parameter for controlling the water flow of the battery waterpump is duty cycle, the control values in Table 1 can be the ratios ofduty cycles.

The foregoing CUR can be a general mapping relation table for this modelof battery water pump. For example, the CUR can be a correspondingrelationship between expected water flows and control values obtained bythe test personnel using this model of battery in advance. In theembodiment, a control value corresponding to an expected water flowobtained by looking up in the CUR is the open-loop expected controlvalue mentioned in this embodiment.

S12, the battery controller obtains a first control coefficientcorresponding to the battery water pump according to the first expectedwater flow and the mapping relation between the expected water flow andthe control coefficient, which is a coefficient obtained according to aclosed-loop actual control value of the battery water pump and aclosed-loop expected control value of the battery water pump when thebattery water pump is in a closed-loop control state.

Referring to the example in S11, the mapping relation between theexpected water flow and the control coefficient records a one-to-onemapping relation between the expected water flow and the controlcoefficient. A separate table can be established for the mappingrelation between the expected water flow and the control coefficient andthe headers of the table include at least: expected water flow andcontrol coefficient. An example of this mapping relation can be as shownin the following Table 2:

TABLE 2 Expected water flow Control coefficient A1 K1 A2 K2 . . . . . .

In some embodiments, the mapping relation between the expected waterflow and the control coefficient and the foregoing CUR can be stored inthe same table, too and the headers of the table include at least:expected water flow, control value and control coefficient, which arenot described again here.

CUR is a general reference value for the same model of battery waterpump, so it varies with battery water pumps due to the difference inproduction process. If only CUR is used to obtain a control value of thebattery water pump, there will be a problem of low accuracy (forexample, an open-loop control mode is adopted). Because the closed-loopcontrol mode introduces a feedback mechanism, it can finely tune theactual control value of the battery water pump according to the owncondition of the battery water pump, and can compensate for thedifference between the actual control value of the battery water pumpand the general control value and improve the control accuracy. In thisembodiment, by using a coefficient obtained according to the closed-loopactual control value of the battery water pump and the closed-loopexpected control value of the battery water pump when the battery waterpump is in a closed-loop control state as a control coefficientcorresponding to the expected water flow, the accuracy of water flowcontrolled by the battery water pump in an open-loop control mode can beimproved to the level of closed-loop control.

S13, the battery controller determines an open-loop actual control valueof the battery water pump according to the open-loop expected controlvalue of the battery water pump and the first control coefficient.

By taking an expected water flow A1 as an example, the batterycontroller can obtain a first control coefficient K1 corresponding tothe A1 according to the mapping relation shown in FIG. 2. Then, thebattery controller can determine an open-loop actual control value Q1 ofthe battery water pump based on the A1 and the K1. The open-loop actualcontrol value Q1 can be a duty cycle. The battery controller uses theopen-loop actual control value Q1 as a control parameter to achieveaccurate control of the water flow of the battery water pump.

In one possible implementation manner, S13 can be implemented by thefollowing method:

When the control coefficient is the ratio between the closed-loop actualcontrol value of the battery water pump and the closed-loop expectedcontrol value of the battery water pump when the battery water pump isin a closed-loop control state, the battery controller can multiply anopen-loop expected control value of the battery water pump with thefirst control coefficient to obtain an open-loop actual control value ofthe battery water pump.

In an alternative possible implementation manner, S13 can be implementedby the following method:

When the control coefficient is the ratio between the closed-loop actualcontrol value of the battery water pump and the closed-loop expectedcontrol value of the battery water pump when the battery water pump isin a closed-loop control state times a first control constant, thebattery controller can multiply an open-loop expected control value ofthe battery water pump with the first control coefficient and thendivided by the first control constant to obtain an open-loop actualcontrol value of the battery water pump.

In a further possible implementation manner, S13 can be implemented bythe following method:

When the control coefficient is the ratio between the closed-loopexpected control value of the battery water pump and the closed-loopactual control value of the battery water pump when the battery waterpump is in a closed-loop control state, the battery controller candivide an open-loop expected control value of the battery water pump bythe first control coefficient to obtain an open-loop actual controlvalue of the battery water pump.

The ways that the battery controller obtains an open-loop actual controlvalue of the battery water pump according to an open-loop expectedcontrol value of the battery water pump and the first controlcoefficient include without limitation the foregoing three ways.

S14, the battery controller uses an open-loop actual control value tocontrol the water flow of the battery water pump.

Referring to the example in S13, the battery controller uses theopen-loop actual control value Q1 as a control parameter to achieveaccurate control of the water flow of the battery water pump.

The embodiments of the present invention provide various control modesof the battery water pump. When the battery water pump adopts aclosed-loop control mode, the battery water pump obtains a controlcoefficient according to a closed-loop actual control value of thebattery water pump and a closed-loop expected control value of thebattery water pump under any expected water flow, thereby establishing amapping relation between the expected water flow and the controlcoefficient. Under the expected water flow, the control coefficient isused for finely tuning the control coefficient of the battery water pumpand can improve the control accuracy of the water flow of the batterywater pump. When the control of the battery water pump is degraded to anopen-loop control mode, an open-loop actual control value is obtainedaccording to an open-loop expected control value corresponding to theexpected water flow and a control coefficient corresponding to theexpected water flow. Now, if the open-loop actual control value is actedupon the battery water pump, the control accuracy of the battery waterpump in an open-loop control mode can be improved.

Optionally, before step S11, i.e. the battery controller obtains anopen-loop expected control value of the battery water pump according toa first expected water flow of the battery water pump, in a possibleimplementation manner, the following steps can also be applied:

The battery controller determines that the battery water pump has aclosed-loop control fault; and the battery controller switches thebattery water pump from a closed-loop control state to an open-loopcontrol state.

Closed-loop control fault means that in a closed-loop control mode, thebattery controller can judge the working state of closed-loop control bythe detection methods of existing technologies. When a closed-loopcontrol fault is detected, the battery controller switches the batterywater pump from a closed-loop control state to an open-loop controlstate. A closed-loop control fault for example can be a fault of thewater flow sensor (e.g., a mass flow sensor), resulting in failure toaccurately collect an actual water flow.

FIG. 3 is a schematic view of a flow of an alternative battery waterpump control method provided by an embodiment of the present invention.This embodiment focuses on introducing how the battery controllerestablishes a mapping relation between an expected water flow and acontrol coefficient in a closed-loop control state. As shown in FIG. 3,before the battery controller is based on the first expected water flowand the mapping relation between the expected water flow and the controlcoefficient, the method also comprises the following steps:

S21, the battery controller obtains a closed-loop actual control valueand a closed-loop expected control value of the battery water pump underat least one expected water flow when the battery water pump is in aclosed-loop control state.

For step S21, in a first possible implementation manner, the closed-loopactual control value and the closed-loop expected control value aregenerated gradually according to the actual needs. The details are asfollows:

In an initial state, the mapping relation between expected water flowand control coefficient is empty. When the battery controller is in aclosed-loop control mode, according to the actual need of the batterywater pump, whenever the battery controller generates a new expectedwater flow, a closed-loop actual control value and a closed-loopexpected control value corresponding to the expected water flow areobtained. Taking the expected water flow A1 of the battery water pumpfor example, the details are as follows:

Firstly, the battery controller can obtain a control value D1corresponding to the expected water flow A1 according to the expectedwater flow (A1) by means of looking up in CUR. Now, the D1 is aclosed-loop expected control value. It should be noted that thisembodiment takes looking up in CUR for example and describes how toobtain a closed-loop expected control value and an open-loop expectedcontrol value. However, the closed-loop expected control value and theopen-loop expected control value can be obtained by other means, too,which are not limited.

Secondly, on the basis of obtaining the closed-loop expected controlvalue (D1), the battery controller uses the D1 to control the water flowof the battery water pump. Then, the battery controller obtains a waterflow difference (e.g., Z1, Z1=A1−B1) according to an expected water flow(A1) of the battery water pump and an actual water flow (e.g., B1)detected by a water flow sensor of the battery water pump.

Thirdly, the battery controller obtains a control difference of thebattery water pump (e.g., F1) through PID closed-loop control based onthe water flow difference Z1. The specific implementation manner canrefer to the existing technology.

Lastly, the battery controller obtains a closed-loop actual controlvalue (e.g., W1) of the battery water pump according to the controldifference of the battery water pump (e.g., F1) and the closed-loopexpected control value (D1) of the battery water pump and uses theclosed-loop actual control value to control the battery water pump. Asan example, the control difference (F1) of the battery water pump can beadded to the closed-loop expected control value (D1) of the batterywater pump to obtain a closed-loop actual control value (W1) of thebattery water pump.

When the battery controller generates a new expected water flow again,the above steps are executed again and eventually the above Table 2 isgenerated.

For step S21, in a second possible implementation manner, theclosed-loop actual control value and the closed-loop expected controlvalue are obtained through test in a plurality of time cycles. Thedetails are as follows:

A. In an i-th time cycle, the battery controller obtains a closed-loopexpected control value of the battery water pump in the i-th time cycleaccording to an expected water flow of the battery water pump in thei-th time cycle and the mapping relation between the expected water flowand the closed-loop expected control value, where the i is greater thanor equal to 0.

As an example, the battery controller can directly obtain a closed-loopexpected control value by looking up in a table. The table can be theforegoing CUR, or other mapping tables used to express expected waterflows and closed-loop expected control values.

B. The battery controller obtains a water flow difference in the i-thtime cycle according to the expected water flow of the battery waterpump in the i-th time cycle and an actual water flow detected by a waterflow sensor of the battery water pump in the i-th time cycle.

C. The battery controller obtains a control difference of the batterywater pump in the i-th time cycle according to the water flow differencein the i-th time cycle.

As an example, the battery controller uses the water flow difference inthe i-th time cycle as an input of PID closed-loop control, and outputsthe control difference of the battery water pump in the i-th time cycle.

D. The battery controller obtains a closed-loop actual control value ofthe expected water flow of the battery water pump in the i-th time cycleaccording to the control difference of the battery water pump in thei-th time cycle and the closed-loop expected control value of thebattery water pump in the i-th time cycle.

As an example, the control difference of the battery water pump in thei-th time cycle can be added to the closed-loop expected control valueof the battery water pump in the i-th time cycle to obtain a closed-loopactual control value of battery water pump in the i-th time cycle.

E. Add 1 to i and return to step A.

The foregoing first possible implementation manner and second possibleimplementation manner can be used in a combined manner, too to make theobtained closed-loop actual control value and closed-loop expectedcontrol value under the expected water flow more comprehensive.

S22, the battery controller obtains a control coefficient of the batterywater pump under at least one expected water flow according to theclosed-loop actual control value and the closed-loop expected controlvalue of the battery water pump under at least one expected water flow.

The example of step S21 is used as an example. The battery controllerobtains a control coefficient (K1, where K1=W1/D1) of the battery waterpump under an expected water flow (A1) according to a closed-loop actualcontrol value (W1) and a closed-loop expected control value (D1) of thebattery water pump under the expected water flow (A1).

S23, the battery controller establishes the mapping relation accordingto the control coefficient of the battery water pump under at least oneexpected water flow and the at least one expected water flow.

At least one expected water flow obtained at steps S21 to S22 and theexpected water flow corresponding thereto establish a mapping relation.For example, an expected water flow A1 corresponds to a controlcoefficient K1, and an expected water flow A2 corresponds to a controlcoefficient K2. In a possible implementation manner, the mappingrelations between the expected water flows and control coefficientscorresponding thereto are stored in CUR. In another possibleimplementation manner, a separate mapping table is established to storethe mapping relations between the expected water flows and controlcoefficients corresponding thereto.

After the mapping relation between a control coefficient under at leastone expected water flow and the at least one expected water flow isobtained, it can be used in step S12, thereby achieving accurate controlof the water flow of the battery water pump in an open-loop control modeby the battery water pump.

All or some of the steps for implementing the foregoing methodembodiments can be completed through hardware relevant with the programinstructions. The foregoing program can be stored in a computer readablestorage medium. During execution of the program, the execution includesthe steps of the foregoing method embodiments; the foregoing storagemedium includes: all kinds of media that can store codes, such as: ROM,RAM, diskette and compact disc.

FIG. 4 is a structural schematic view of a battery controller furtherprovided by an embodiment of the present invention. The batterycontroller is a part of the battery and the battery at least comprises:a battery controller and a battery water pump. As shown in FIG. 4, thebattery controller comprises a processing module 101 and a controlmodule 102.

The processing module 101 is used for obtaining an open-loop expectedcontrol value of the battery water pump according to a first expectedwater flow of the battery water pump when the battery water pump is inan open-loop control state; obtaining a first control coefficientcorresponding to the battery water pump according to the first expectedwater flow and the mapping relation between the expected water flow andthe control coefficient; and determining an open-loop actual controlvalue of the battery water pump according to the open-loop expectedcontrol value of the battery water pump and the first controlcoefficient, which is a coefficient obtained according to a closed-loopactual control value of the battery water pump and a closed-loopexpected control value of the battery water pump when the battery waterpump is in a closed-loop control state;

The control module 102 is used for controlling the water flow of thebattery water pump by utilizing the open-loop actual control value.

Referring to FIG. 4, in some embodiments, the battery controller furthercomprises: an obtaining module 103.

The obtaining module 103 is used for obtaining a closed-loop actualcontrol value and a closed-loop expected control value of the batterywater pump under at least one expected water flow when the battery waterpump is in a closed-loop control state before the processing module 101obtains a first control coefficient corresponding to the battery waterpump.

The processing module 101 is further used for obtaining a controlcoefficient of the battery water pump under at lest one expected waterflow according to a closed-loop actual control value and a closed-loopexpected control value of the battery water pump under the at least oneexpected water flow; and establishing the mapping relation according tothe control coefficient of the battery water pump under at least oneexpected water flow and the at least one expected water flow.

Optionally, in some embodiments, the battery water pump is in aclosed-loop control state and the obtaining module 103 is used for:

A. in an i-th time cycle, obtaining a closed-loop expected control valueof the battery water pump in the i-th time cycle according to anexpected water flow of the battery water pump in the i-th time cycle andthe mapping relation between the expected water flow and the closed-loopexpected control value, where the i is greater than or equal to 0;

B. obtaining a water flow difference in the i-th time cycle according tothe expected water flow of the battery water pump in the i-th time cycleand an actual water flow detected by a water flow sensor of the batterywater pump in the i-th time cycle;

C. obtaining a control difference of the battery water pump in the i-thtime cycle according to the water flow difference in the i-th timecycle;

D. obtaining a closed-loop actual control value of the expected waterflow of the battery water pump in the i-th time cycle according to thecontrol difference of the battery water pump in the i-th time cycle andthe closed-loop expected control value of the battery water pump in thei-th time cycle; and;

E. adding 1 to i and going back to step A.

Referring to FIG. 4, optionally, in some embodiments, the batterycontroller further comprises: a determining module 104.

The determining module 104 is used for determining that the batterywater pump has a closed-loop control fault before the processing module101 obtains an open-loop expected control value of the battery waterpump according to a first expected water flow of the battery water pump.The processing module 101 is further used in the battery controller toswitch the battery water pump from a closed-loop control state to anopen-loop control state.

Optionally, in some embodiments, the control coefficient is the ratiobetween the closed-loop actual control value of the battery water pumpand the closed-loop expected control value of the battery water pumpwhen the battery water pump is in a closed-loop control state, and theprocessing module 101 is specifically used for multiplying an open-loopexpected control value of the battery water pump with the first controlcoefficient to obtain an open-loop actual control value of the batterywater pump.

The battery controller provided by the embodiments of the presentinvention may implement the foregoing method embodiments. Itsimplementation principle and technical effect are similar, so they arenot described again.

FIG. 5 is a structural schematic view of an alternative batterycontroller provided by an embodiment of the present invention. As shownin FIG. 5, the battery controller 300 comprises: a memory 301 and atleast one processor 302.

The memory 301 is used for storing program instructions.

The processor 302 is used for implementing the battery water pumpcontrol method in the embodiment of the present invention when theprogram instructions are executed. The foregoing embodiments can bereferred to for the specific implementation principle, which is notdescribed again in this embodiment.

The battery controller 300 may further comprise an input/output (I/O)interface 303.

The I/O interface 303 may comprise an independent output interface andan independent input interface, or may be an integrated interface, whichintegrates input and output. Here, the output interface is used foroutputting data, and the input interface is used for obtaining inputdata. The foregoing output data are a general term of output in theforegoing method embodiments, and the input data are a general term ofinput in the foregoing method embodiments.

The present invention further provides a readable storage medium. Thereadable storage medium stores execution instructions. When at least oneprocessor of the battery controller executes the execution instructions,or when the computer execution instructions are executed by a processor,the battery water pump control method in the foregoing methodembodiments is implemented.

The present invention further provides a program product. The programproduct comprises execution instructions, which are stored in a readablestorage medium. At least one processor of the battery controller 300 canread the execution instructions from the readable storage medium and atleast one processor executes the execution instructions to cause thebattery controller 300 to implement the battery water pump controlmethod provided by the foregoing implementation manners.

An embodiment of the present invention further provides a battery. Thebattery comprises the battery controller shown in any of the foregoingembodiments.

The foregoing embodiments are intended to describe and not to limit thetechnical solutions of the present invention. Although the presentinvention has been described in detail by referring to the foregoingembodiments, modifications or replacements can be made withoutmaterially departing from the scope of the present invention.

1. A control method for a battery comprising a battery controller and a battery water pump, wherein: when the battery water pump is in an open-loop control state, the battery controller obtains an open-loop expected control value of the battery water pump according to a first expected water flow of the battery water pump; the battery controller obtains a first control coefficient corresponding to the battery water pump according to the first expected water flow and the mapping relation between the expected water flow and the control coefficient, which is a coefficient obtained according to a closed-loop actual control value of the battery water pump and a closed-loop expected control value of the battery water pump when the battery water pump is in a closed-loop control state; the battery controller determines an open-loop actual control value of the battery water pump according to the open-loop expected control value of the battery water pump and the first control coefficient; and the battery controller controls the water flow of the battery water pump by utilizing the open-loop actual control value.
 2. The method according to claim 1, wherein: before the battery controller obtains a first control coefficient corresponding to the battery water pump, the battery controller obtains a closed-loop actual control value and a closed-loop expected control value of the battery water pump under at least one expected water flow when the battery water pump is in a closed-loop control state; the battery controller obtains a control coefficient of the battery water pump under at least one expected water flow according to the closed-loop actual control value and the closed-loop expected control value of the battery water pump under at least one expected water flow; and the battery controller establishes the mapping relation according to the control coefficient of the battery water pump under at least one expected water flow and the at least one expected water flow.
 3. The method according to claim 2, wherein the battery water pump is in a closed-loop control state and the battery controller obtains a closed-loop actual control value and a closed-loop expected control value of the battery water pump under at least one expected water flow when the battery water pump is in a closed-loop control state, wherein the method comprises: A. in an i-th time cycle, the battery controller obtains a closed-loop expected control value of the battery water pump in the i-th time cycle according to an expected water flow of the battery water pump in the i-th time cycle and the mapping relation between the expected water flow and the closed-loop expected control value, where the i is greater than or equal to 0; B. the battery controller obtains a water flow difference in the i-th time cycle according to the expected water flow of the battery water pump in the i-th time cycle and an actual water flow detected by a water flow sensor of the battery water pump in the i-th time cycle; C. the battery controller obtains a control difference of the battery water pump in the i-th time cycle according to the water flow difference in the i-th time cycle; D. the battery controller obtains a closed-loop actual control value of the expected water flow of the battery water pump in the i-th time cycle according to the control difference of the battery water pump in the i-th time cycle and the closed-loop expected control value of the battery water pump in the i-th time cycle; and E. add 1 to i and return to step A.
 4. The method according to claim 1, wherein before the battery controller obtains an open-loop expected control value of the battery water pump according to a first expected water flow of the battery water pump, the method further comprises: the battery controller determines that the battery water pump has a closed-loop control fault; and the battery controller switches the battery water pump from a closed-loop control state to an open-loop control state.
 5. The method according to claim 1, wherein the control coefficient is the ratio between the closed-loop actual control value of the battery water pump and the closed-loop expected control value of the battery water pump when the battery water pump is in a closed-loop control state, and the battery controller determines an open-loop actual control value of the battery water pump according to the open-loop expected control value of the battery water pump and the first control coefficient, wherein the method comprises: the battery controller multiplies the open-loop expected control value of the battery water pump with the first control coefficient to obtain an open-loop actual control value of the battery water pump.
 6. A battery controller for a battery comprising the battery controller and a battery water pump, and the battery controller comprising: a processing module configured for obtaining an open-loop expected control value of the battery water pump according to a first expected water flow of the battery water pump when the battery water pump is in an open-loop control state; obtaining a first control coefficient corresponding to the battery water pump according to the first expected water flow and the mapping relation between the expected water flow and the control coefficient; and determining an open-loop actual control value of the battery water pump according to the open-loop expected control value of the battery water pump and the first control coefficient, which is a coefficient obtained according to a closed-loop actual control value of the battery water pump and a closed-loop expected control value of the battery water pump when the battery water pump is in a closed-loop control state; and a control module configured for controlling the water flow of the battery water pump by utilizing the open-loop actual control value.
 7. The battery controller according to claim 6, wherein the battery controller further comprises: an obtaining module configured for obtaining a closed-loop actual control value and a closed-loop expected control value of the battery water pump under at least one expected water flow when the battery water pump is in a closed-loop control state before the processing module obtains a first control coefficient corresponding to the battery water pump; wherein the processing module is further configured for obtaining a control coefficient of the battery water pump under at least one expected water flow according to a closed-loop actual control value and a closed-loop expected control value of the battery water pump under the at least one expected water flow; and establishing the mapping relation according to the control coefficient of the battery water pump under at least one expected water flow and the at least one expected water flow.
 8. The battery controller according to claim 7, wherein the battery water pump is in a closed-loop control state and the obtaining module is configured for: A. in an i-th time cycle, obtaining a closed-loop expected control value of the battery water pump in the i-th time cycle according to an expected water flow of the battery water pump in the i-th time cycle and the mapping relation between the expected water flow and the closed-loop expected control value, where the i is greater than or equal to 0; B. obtaining a water flow difference in the i-th time cycle according to the expected water flow of the battery water pump in the i-th time cycle and an actual water flow detected by a water flow sensor of the battery water pump in the i-th time cycle; C. obtaining a control difference of the battery water pump in the i-th time cycle according to the water flow difference in the i-th time cycle; D. obtaining a closed-loop actual control value of the expected water flow of the battery water pump in the i-th time cycle according to the control difference of the battery water pump in the i-th time cycle and the closed-loop expected control value of the battery water pump in the i-th time cycle; and E. adding 1 to i and returning to step A.
 9. The battery controller according to claim 6, wherein the battery controller further comprises: a determining module configured for determining that the battery water pump has a closed-loop control fault before the battery controller obtains an open-loop expected control value of the battery water pump according to a first expected water flow of the battery water pump; and wherein the processing module is further configured in the battery controller to switch the battery water pump from a closed-loop control state to an open-loop control state.
 10. The battery controller according to claim 6, wherein the control coefficient is the ratio between the closed-loop actual control value of the battery water pump and the closed-loop expected control value of the battery water pump when the battery water pump is in a closed-loop control state, and the processing module is configured for multiplying an open-loop expected control value of the battery water pump with the first control coefficient to obtain an open-loop actual control value of the battery water pump.
 11. A battery controller, wherein the battery controller comprises at least one processor and a memory, wherein: the memory is configured to store computer execution instructions; and the at least one processor is configured to execute the computer execution instructions stored in the memory, so that the battery controller executes the method of claim
 1. 12. A computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions and when the computer execution instructions are executed by the processor, the method of claim 1 is implemented.
 13. A battery comprising the battery controller of claim
 6. 